package com.vanke.kotlin.domain

/**
 * @name Kotlin
 * @package name：com.vanke.kotlin.domain
 * @class describe
 * @anthor shiyuchuan
 * @time 2017/7/27 15:41
 */
class RequestFoecastCommand(val zipCode: Long,val forecastProvider: ForecastProvider =
 ForecastProvider()) : Command<ForecastList> {

    companion object {

        val DAYS = 7
    }

    override fun execute(): ForecastList {
        return forecastProvider.requestByZipCode(zipCode, DAYS)
    }
}